<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/templates/template.xhtml">
    <ui:define name="title">投递配置</ui:define>
    <ui:define name="content">
        <h:form>
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="保存" icon="fa fa-save" update="@form"
                                    actionListener="#{largeNewDeliveryInfoBean.save()}"/>
                        <p:commandButton icon="fa fa-reply-all" value="返回"
                                         action="#{largeNewDeliveryInfoBean.onReturn()}"
                                         process="@this"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">0
                <div class="ui-g">
                    <div class="ui-g-12">
                        <div class="card ui-g-12">
                            <div class="ui-g-12">
                                <h3>基础信息</h3>
                            </div>
                            <div class="ui-g-12">
                                <div class="ui-g">
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="甲方"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:selectOneMenu value="#{largeNewDeliveryInfoBean.$.largeType}"
                                                         filter="true" filterMatchMode="contains"
                                                         disabled="#{largeNewDeliveryInfoBean.isView()}">
                                            <f:selectItem itemLabel="--请选择--" itemValue=""/>
                                            <f:selectItems value="#{largeNewDeliveryInfoBean.loanWholeSaleCommentList}"
                                                           var="largeProduct"
                                                           itemLabel="#{largeProduct.ownername}"
                                                           itemValue="#{largeProduct.type}"/>
                                        </p:selectOneMenu>
                                    </div>
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="投递优先级"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:inputText value="#{largeNewDeliveryInfoBean.$.sort}"/>
                                    </div>
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="城市"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:selectCheckboxMenu id="prd_name" value="#{largeNewDeliveryInfoBean.selectCity}"
                                                              filter="true" filterMatchMode="contains" multiple="true">
                                            <f:selectItem itemValue="默认" itemLabel="默认"/>
                                            <f:selectItems value="#{largeNewDeliveryInfoBean.commRegionNewInfoList}"
                                                           var="cityStr"
                                                           itemLabel="#{cityStr.name}"
                                                           itemValue="#{cityStr.name}"/>
                                        </p:selectCheckboxMenu>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </h:form>
    </ui:define>
</ui:composition>
